package com.wmh.baseservice.skd.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wmh.baseservice.skd.pojo.SkdBrowsingHistory;
import com.wmh.baseservice.skd.service.SkdBrowsingHistoryService;
import com.wmh.baseservice.skd.mapper.SkdBrowsingHistoryMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
* @author CH
* @description 针对表【skd_browsing_history】的数据库操作Service实现
* @createDate 2024-01-23 11:09:15
*/
@Service
public class SkdBrowsingHistoryServiceImpl extends ServiceImpl<SkdBrowsingHistoryMapper, SkdBrowsingHistory>
    implements SkdBrowsingHistoryService{

    @Resource
    private SkdBrowsingHistoryMapper skdBrowsingHistoryMapper;

    /**
     * 根据用户id查询浏览记录
     * @param usId 用户id
     * @return 返回浏览记录列表
     */
    @Override
    public List<SkdBrowsingHistory> getByUserId(Long usId) {
        return skdBrowsingHistoryMapper.getByUserId(usId);
    }
}




